/**
 * Alipay.com Inc.
 * Copyright (c) 2005-2013 All Rights Reserved.
 */
package com.pingan.mobilegw.core.service.business;

import com.pingan.mobilegw.common.dal.dataobject.MaServiceConfigDO;
import com.pingan.mobilegw.core.model.ServiceConfig;

/**
 * 业务组件
 * 
 * @author lzhe.li
 * @version $Id: BusinessComponent.java, v 0.1 2013-1-11 下午03:07:58 lzhe.li Exp $
 */
public interface BusinessComponent {

    /**
     * 根据operationType获取服务配置信息
     * 
     * @return
     */
    ServiceConfig getServiceConfig(String operationType);

    /**
     * 判断时候为本地硬编码服务
     * 
     * @param operationType
     * @return
     */
    boolean isLocalService(String operationType);

    /**
     * 根据operatorType获得业务处理器
     * @param operatorType
     * @return
     */
    public Processor getProcessor(String operatorType);

    /**
     * 增加业务处理器
     * @param config
     * @return
     */
    public boolean addProcessor(MaServiceConfigDO config);

    /**
     * 删除业务处理器
     * @param config
     * @return
     */
    public boolean removeProcessor(MaServiceConfigDO config);

}
